package routers

import (
	"github.com/gin-gonic/gin"
	"my-gin-tiktok/app/controllers"
	"my-gin-tiktok/app/middlewares"
)

func InitFavoriteRouter(router *gin.RouterGroup) {
	favorite := router.Group("favorite")
	favorite.Use(middlewares.JWTAuthMiddleware())
	favorite.POST("/video", controllers.FavoriteVideo)
	favorite.GET("/videos", controllers.FavoriteVideoList)
	favorite.POST("/comment", controllers.FavoriteComment)
	favorite.GET("/comments", controllers.FavoriteCommentList)
	return
}
